angular.module('myApp').component('people', {
  bindings: { people: '<' },
  templateUrl: "view/people.html",
    controller: function(PeopleService,MyFactory) {
        this.setPeopleServiceName=function () {
            console.log('修改前：PeopleService.name:'+PeopleService.name);
            PeopleService.name='peopleName';
            console.log('修改后：PeopleService.name:'+PeopleService.name);
        }
        this.setMyFactoryName=function () {
            console.log('修改前：MyFactory.name:'+MyFactory.name);
            MyFactory.name='peopleFactoryName';
            console.log('修改后：MyFactory.name:'+MyFactory.name);

        }
    }
});